n=3894; pencil=[|5387,7578| 5387,3754| 5387,2535|];